package com.designPattern.responsibilityChain;

/**
 * @Auther: zwg
 * @Date: 2019/2/20 14:28
 * @Description:处理限定值
 */
public class SpecialSupport extends Support{

    private int number;

    public SpecialSupport(String name, int number) {
        super(name);
        this.number = number;
    }

    @Override
    protected boolean resolve(Integer trouble) {
        if(trouble==number){
            return true;
        }
        return false;
    }
}
